﻿// ==UserScript==
// @name         采集shopee产品链接
// @namespace 	 test
// @version      1.0.0
// @description  测试
// @author       Zoro.Zhu
// @include      http://market.yafex.cn/index.php?r=shopee_online/product/list*
// @exclude      *://*.eggvod.cn/*
// @connect      *
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// @grant        window.close
// @grant        GM_xmlhttpRequest
// @grant        GM_download
// ==/UserScript==a
(function () {
    $('.searchUl').append("<br><input value=\"获取产品链接\" type=\"button\" onclick=\"var shopId = window.prompt('请输入店铺ID', '');\n" +
        "        var itemId = ''; var account = $('select[name=account]').val();\n" +
        "    $('input[name=product-id]:checked').each(function(){\n" +
        "        itemId += $(this).val() + ','" +
        "    });\n" +
        "        if(!shopId){return false;}" +
        "        window.open('http://vs.6beams.com:8801/?c=ctrl_wish_product&a=getShopeeDxm&account=' + account + '&shopId=' + shopId + '&itemId=' + itemId,'_blank');" +
        "\">");
})();

